-module(game_sup).
-behaviour(supervisor).

-export([start_link/0, init/1]).

-spec start_link() -> {ok, pid()}.
start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE< []).

-spec init([])
    -> {ok, {{supervisor:strategy(), 10, 10}, [supervisor:child_spec()]}}.
init([]) ->
    {
        ok,
        {
            {one_for_one, 1, 10},
            [
                {
                    game,
                    {game, start_linke, []},
                    permanent,
                    5000,
                    worker,
                    [game]
                }
            ]
        },
    }
